#pragma once

#include <graphic/intype.h>

BEGIN_NAMESPACE_OXGE

class BoundingBox
{
public:
	BoundingBox(){}
	BoundingBox(const Point3& minPt, const Point3& maxPt, const Point3& centerPt)
		: m_min(minPt), m_max(maxPt), m_center(centerPt){}

	BoundingBox& SetMin(const Point3& minPt){ m_min = minPt; return *this;  }
	BoundingBox& SetMax(const Point3& maxPt){ m_max = maxPt; return *this;  }
	BoundingBox& SetCenter(const Point3& centerPt){ m_center = centerPt; return *this; }


public:
	Point3 m_min;
	Point3 m_max;
	Point3 m_center;
};


END_NAMESPACE_OXGE